package com.tanhua.api.mongo;

import com.tanhua.mongo.Publish;
import com.tanhua.vo.PageBeanVo;

public interface PublishApi {

   //保存发布的动态
    String savePublish(Publish publish);

    PageBeanVo findPublishAll(Integer page, Integer pagesize, Long userId);


    PageBeanVo findFriendPublish(Integer page, Integer pagesize, Long userId);

    PageBeanVo findRecommendPublish(Integer page, Integer pagesize, Long userId);

    Publish findById(String publishId);

    PageBeanVo findMessages(Integer page, Integer pagesize, Long uid, Integer state);

 void updateState(String publishId, int state);

    Publish findByPid(String pid);
}
